/*! \file assert.cpp
 *	\brief
 *
 *	created:	2009/11/23
 *	created:	23:11:2009   14:12
 *	filename: 	o:\gag-engine\libs\core\assert.cpp
 *	file path:	o:\gag-engine\libs\core
 *	file base:	assert
 *	file ext:	cpp
 *	author:		Vitalii Trubchaninov
 *				venngraydog@gmail.com
 */
#include "core/stdafx.h"
#include "assert.h"

#include "core/String.h"

namespace tt{
namespace core{

void unreachable(const char* text)
{
	assert(0 && "UNREACHABLE POINT REACHED" );
	ttThrow( str( Format( TT_TEXT("UNRECHABLE POINT REACHED : %1%") ) % text ) );
}

// void unreachable( const String& text )
// {
// 	assert(0 && "UNREACHABLE POINT REACHED" );
// 	throw lang::Exception(lang::Format("UNRECHABLE POINT REACHED : {0}", text));
// }

void not_implemented()
{
	assert(0 && "NOT_IMPLEMENTED_POINT_REACHED");
	ttThrow( TT_TEXT("NOT_IMPLEMENTED_POINT_REACHED") );
}


} //namespace core
} //namespace tt
